<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
    </head>
    <body>
        <!-- <script>
            let arr = [1, 2, 3, 4, 5, 6, 7, 8];
            // 截取其中一段  3,4,5
            // slice 返回新的数组 不会修改原来的数组
            let a = arr.slice(2, 5);
            console.log(arr);
            console.log(a);
        </script> -->
        <script>
            let arr1=[2022,8,18]
            let b=arr1.join('/')
            console.log(arr1);
            console.log(b);
            console.log(typeof b);
        </script>
        <script>
            let c="1,2,3,4,5"
            let arr2=c.split(",");
            console.log(arr2);
        </script>
    </body>
</html>
